class A5_4 {
  int m;
  int getM() {
    return m;
  }
  int seeM(){
    return m;
  }
}
class B5_4 extends A5_4 {
  int m;
  int getM() {
    return m+100;
  }
}
public class E5_4 {
  public static void main (String args[]){
    B5_4 b=new B5_4();
    b.m=10;
    System.out.println(b.getM());
    A5_4 a=b;
    a.m=-100;
    System.out.println(a.getM());
    System.out.println(b.seeM());
  }
}
